﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cmember
{
    class Book
    {
        public Book(int id,string name ,string blurb, double price)
        {
            this.Id = id;
            this.Name = name;
            this.Blurb = blurb;
            this.Price = price;

        }
        // 编号
        public int Id { get; set; }
        // 书名
        public string Name { get; set; }
        // 简介
        public string Blurb { get; set; }
        //价格
        public double Price { get; set; }

        public void PrintMsg()
        {
            Console.WriteLine("图书编号：" + this.Id);
            Console.WriteLine("图书名称：" + this.Name);
            Console.WriteLine("图书介绍：" + this.Blurb);
            Console.WriteLine("图书价格：" + this.Price);
        }

    }
}
